<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
    	<?php echo $this->Html->charset(); ?>
    	<title><?php echo __('Jingbee - '.$title_for_layout); ?></title>
    	<?php
    		echo $this->Html->meta('icon');
    		echo $this->Html->css(array(
    									'styles',
                                        'styles_slide'		
    				));
    		echo $this->Html->script(array(
                                        'jquery-1.3.2.min',
                                        'run-slide'
                                        
                                    ));
            echo $this->fetch('meta');
    		echo $this->fetch('css');
    		echo $this->fetch('script');
    	?>
    </head>
	<body>
        <div id="wrapper">
            <?php echo 	$this->element('Nav/front_end',array('userCurrent' => $userCurrent));?>
            <div id="body">
                <div id="list">
                    <?php
                        if(!empty($userCurrent)) 
                            echo $this->element('Nav/slide_user',array('userCurrent' => $userCurrent));
                        else
                            echo $this->element('Nav/slide_font_end'); 
                    ?>
                    <?php echo $this->fetch('content'); ?>
                </div>
            </div>
            <div id="footer">
                <p>
                    <a href="#">Điều khoản sử dụng</a> | 
                    <a href="#">Về chúng tôi</a> | 
                    <a href="#">Hướng dẫn sử dụng</a>
                </p>
        		<strong>© Jingbee, 2012.</strong>
        	</div>
            <div class="note-popup" style="display: none;">
    		    <label>Thông báo</label>
    		    <div class="content">
    		    </div>
    		</div>
            <div class="call-center" style="display: none;">
                <label>Thông báo</label>
    		    <div class="content">
    		    </div>
            </div>
    		<?php
                if(!empty($userCurrent)) {
    		?>
    		<input type="hidden" class="uidCallStart" value="<?php echo $userCurrent['id']; ?>"/>
    		<input type="hidden" class="groupType" value="<?php echo $userCurrent['group_id']; ?>"/>
    		<?php } ?>
        </div>
        <script type="text/javascript">
        $(document).ready(function() {
            setTimeout(function(){
                $("#skypedetectionswf").attr('height',0);
            },1000);
        });
        </script>
	</body>
</html>